package com.ruoyi.web.controller.job;



import com.ruoyi.system.service.ISysOrderService;
import lombok.extern.slf4j.Slf4j;
import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;



/**
 * 定时器
 */
@Component
@Slf4j
public class TimerJob {

    @Autowired
    private ISysOrderService orderService;


    /**
     * 消费redis队列
     *
     */
    //@Scheduled(fixedDelay = 1*1000)
    public void aa(){

        log.info("删除过期客服用户信息ing");

    }

    /**
     *  调用渠道充值接口进行充值
     *
     */
    @Scheduled(cron = "0 */3 * * * ? ")
    public void getChannelForRecharge(){
        orderService.doRequestChannelRecharge();
    }




}
